<php>
    $now='active change';
    $tabClass['help']=$tabHash == 'help'?$now:'';
    $tabClass['question']=$tabHash == 'question'?$now:'';
    $tabClass['usercenter'] = $tabHash == 'usercenter' ? $now : '';
</php>
<nav class="navbar navbar-default uc_navbar top_menu" role="navigation"
     style="margin-bottom: 0;background-color: transparent;min-height: 30px;">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
            <li>
                <a href="{:U('usercenter/index/index',array('uid'=>$uid))}" class="{$tabClass.usercenter}" style="padding: 3px 18px;">主页</a>
            </li>
            <li>
                <a href="{:U('help/usercenter/publish',array('uid'=>$uid))}" class="{$tabClass.help}" style="padding: 3px 18px;">帮忙</a>
            </li>
            <li>
                <a href="{:U('question/usercenter/publish',array('uid'=>$uid))}" class="{$tabClass.question}" style="padding: 3px 18px;">问题</a>
            </li>
        </ul>
    </div>
    <!-- /.navbar-collapse -->
</nav>